/**
 * <p>field控件</p>
 * 继承自Ext.form.field.Base，xtype = cceaffield

 * @module Ext-ux-cceaf-control
 * @class cceaf.control.Field
 * @extends Ext.form.field.Base
 * @since 1.0
 */
Ext.define('cceaf.control.Field',{
	extend: 'Ext.form.field.Base', 
	requires: [
  	    'cceaf.ControlDefaultConfig'
    ],
    alias: 'widget.cceaffield',
    
    constructor: function(config){
		config = config || {};
		
		var labelStyle;
		var allowBlank = config.allowBlank;
		if (!allowBlank) {
			var noAllowBlankFieldLabelStyle = cceaf.ControlDefaultConfig.NO_ALLOW_BLANK_FIELD_LABEL_STYLE;
			//labelStyle = 'color:blue;';
			labelStyle = noAllowBlankFieldLabelStyle;
		}
		config = Ext.applyIf(config || {}, {
			labelStyle: labelStyle
		});

		cceaf.control.Field.superclass.constructor.apply(this, arguments);
	}
	
});